package com.taotao.service.impl;

import com.taotao.mapper.ItemCategoryMapper;
import com.taotao.pojo.ItemCategory;
import com.taotao.service.ItemCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author hong.zheng
 * @Description
 * @date 2018-08-23-9:29
 **/
@Service
public class ItemCategoryServiceImpl implements ItemCategoryService {
    @Autowired
    private ItemCategoryMapper itemCategoryMapper;


    @Override
    public List<ItemCategory> getItemCategoryAll() {
        return itemCategoryMapper.getItemCategoryAll();
    }

    @Override
    public List<ItemCategory> getItemCategoryListByParentId(Long parentId) {
        return itemCategoryMapper.getItemCategoryListByParentId(parentId);
    }
}
